package flextv.core.logic {

import mx.rpc.IResponder;

public dynamic class ResponderAdapter extends DynamicImplementation implements IResponder {
	
	public function ResponderAdapter(fnResult: Function, fnFault: Function) {
		addFunction("fnResult", fnResult);
		addFunction("fnFault", fnFault);
	}
	
	public function result(data: Object): void {
		this.fnResult(data);
	}
	
	public function fault(info: Object): void {
		this.fnFault(info);
	}
	
}
}